package com.xcz.demo01;

public class Proxy implements Rent {
    Host host = new Host();

    public Proxy() {
    }

    public Proxy(Host host) {
        System.out.println("代理接管");
        this.host = host;
    }

    @Override
    public void rent() {
        host.rent();
    }

    public void chechHouse() {
        System.out.println("中介带你看房子");
    }

    public void signContract() {
        System.out.println("签订合同");
    }

    public void charge() {
        System.out.println("收费");
    }
}
